package com.smile;

import com.alibaba.cloud.nacos.NacosConfigAutoConfiguration;
import com.alibaba.cloud.nacos.NacosServiceAutoConfiguration;
import com.alibaba.cloud.nacos.NacosServiceManager;
import com.alibaba.cloud.nacos.discovery.NacosDiscoveryAutoConfiguration;
import com.alibaba.cloud.nacos.discovery.NacosDiscoveryClient;
import com.alibaba.cloud.nacos.registry.NacosServiceRegistry;
import com.smile.annotation.EnableFeignClients;
import com.smile.config.*;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@LoginEnabled
public class SSOApplication implements CommandLineRunner {

    @Value("${spring.redis.host}")
    private String host;

    public static void main(String[] args) {
        SpringApplication.run(SSOApplication.class, args);

    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println("redis=" + host);
    }
}